X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/177fd6fefd2e3d5a0ea6591c71d660cabdb3c1a4..refs/tags/wordpress-2.9:/wp-admin/media.php?action=edit;attachment_id=%3C%3Fphp%20echo%20%24post-%3EID;%20%3F%3E= diff --git a/wp-admin/media.php b/wp-admin/media.php index 25088108..09776b48 100644 --- a/wp-admin/media.php +++ b/wp-admin/media.php @@ -1,8 +1,15 @@ ID) ) wp_die( __('You attempted to edit an attachment that doesn’t exist. Perhaps it was deleted?') ); + if ( $att->post_status == 'trash' ) wp_die( __('You can’t edit this attachment because it is in the Trash. Please move it out of the Trash and try again.') ); + add_filter('attachment_fields_to_edit', 'media_single_attachment_fields_to_edit', 10, 2); wp_enqueue_script( 'wp-ajax-response' ); - add_action('admin_head', 'media_admin_css'); + wp_enqueue_script('image-edit'); + wp_enqueue_style('imgareaselect'); require( 'admin-header.php' ); + $parent_file = 'upload.php'; $message = ''; $class = ''; if ( isset($_GET['message']) ) { @@ -74,25 +86,25 @@ case 'edit' : ?>
- +

-
-
+ +
- false, 'send' => false, 'delete' => false, 'errors' => $errors ) ); ?> + false, 'send' => false, 'delete' => false, 'show_title' => false, 'errors' => $errors ) ); ?>

- - - + + +

- +